package com.gdufe.common.feign;

import com.gdufe.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.security.Principal;
import java.util.Map;

@FeignClient(name = "mall-uaa")
public interface UaaFeign {

    @PostMapping("/uaa/oauth/token")
    public R postAccessToken(Principal principal, @RequestParam Map<String, String> parameters);
}
